package cn.wolfcode.tieba.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @author 王金龙
 * @date 2021/2/6 23:21
 */
@Getter
@Setter
@ToString
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long tieziId;
    private String content;
    private Long replyId;
    private Date createTime;
    private Long authorId;
    private String replyAuthorName;
    private Long commentId;

    @TableField(exist = false)
    private List<Comment> replyComment;
    @TableField(exist = false)
    private User author;
    @TableField(exist = false)
    private Tiezi tiezi;
}
